﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类TYPE_CX_FDJ_UNION
     ///</summary>
     public class TYPE_CX_FDJ_UNION
     {
         private int __ID=0 ;
         private string __PPZM=string.Empty ;
         private string __PP=string.Empty ;
         private string __XH=string.Empty ;
         private string __PPXH=string.Empty ;
         private string __FDJXH=string.Empty ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public TYPE_CX_FDJ_UNION()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("PPZM",false);
             this.__Changed.Add("PP",false);
             this.__Changed.Add("XH",false);
             this.__Changed.Add("PPXH",false);
             this.__Changed.Add("FDJXH",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID =0;
             this.__PPZM =string.Empty;
             this.__PP =string.Empty;
             this.__XH =string.Empty;
             this.__PPXH =string.Empty;
             this.__FDJXH =string.Empty;
             this.__Changed["ID"] = false;
             this.__Changed["PPZM"] = false;
             this.__Changed["PP"] = false;
             this.__Changed["XH"] = false;
             this.__Changed["PPXH"] = false;
             this.__Changed["FDJXH"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[PPZM]的数据
         /// </summary>
         public string PPZM
         {
              set{ __PPZM = value.Replace("'","’"); __Changed["PPZM"] = true;}
              get{return __PPZM;}
         }
         /// <summary>
         ///设置或获取类中的[PP]的数据
         /// </summary>
         public string PP
         {
              set{ __PP = value.Replace("'","’"); __Changed["PP"] = true;}
              get{return __PP;}
         }
         /// <summary>
         ///设置或获取类中的[XH]的数据
         /// </summary>
         public string XH
         {
              set{ __XH = value.Replace("'","’"); __Changed["XH"] = true;}
              get{return __XH;}
         }
         /// <summary>
         ///设置或获取类中的[PPXH]的数据
         /// </summary>
         public string PPXH
         {
              set{ __PPXH = value.Replace("'","’"); __Changed["PPXH"] = true;}
              get{return __PPXH;}
         }
         /// <summary>
         ///设置或获取类中的[FDJXH]的数据
         /// </summary>
         public string FDJXH
         {
              set{ __FDJXH = value.Replace("'","’"); __Changed["FDJXH"] = true;}
              get{return __FDJXH;}
         }
    }
}
